using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using yq.IBase;
using yq.Model.Base;
using System.ComponentModel.DataAnnotations;
using System.Web.Mvc;
using cn.Util;

namespace yq.Model.Logic
{
    /// <summary>
    /// Vote_List - 投票列表 - 对象继承类
    /// </summary>
    [MetadataType(typeof(VoteListValidaTion))]
    public class VoteList : IVoteList<VoteList>
    {


       #region 生成实体类验证属性
       /// <summary>
       /// 辅助验证类
       /// </summary>
       [Bind]
       public class VoteListValidaTion
       {

     

        /// <summary>
        /// 投票ID
        /// </summary>
        [Display(Name ="投票ID")]
        [Required]
        [StringLength(36)]
        public String VoteId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 标题
        /// </summary>
        [Display(Name ="标题")]
        [Required]
        [StringLength(100)]
        public String Title
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 选项内容Id
        /// </summary>
        [Display(Name ="选项内容Id")]
        [Required]
        [StringLength(36)]
        public String ContentId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建人
        /// </summary>
        [Display(Name ="创建人")]
        [Required]
        [StringLength(36)]
        public String UserId
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 创建时间
        /// </summary>
        [Display(Name ="创建时间")]
        [Required]

        public DateTime SubmitTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 开始时间
        /// </summary>
        [Display(Name ="开始时间")]
        [Required]

        public DateTime OpenTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 结束时间
        /// </summary>
        [Display(Name ="结束时间")]
        [Required]

        public DateTime OverTime
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 状态
        /// </summary>
        [Display(Name ="状态")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.VoteList.Status Status
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 类型
        /// </summary>
        [Display(Name ="类型")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.VoteList.Type Type
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 投票间隔类型
        /// </summary>
        [Display(Name ="投票间隔类型")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public yq.Enums.VoteList.IntervalType IntervalType
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 值
        /// </summary>
        [Display(Name ="值")]
        [StringLength(500)]
        public String Interval
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 说明
        /// </summary>
        [Display(Name ="说明")]
        [StringLength(36)]
        public String Detailed
        {
         get; set; 
        }


       
     

        /// <summary>
        /// 排序
        /// </summary>
        [Display(Name ="排序")]
       [RegularExpression(RegularExpressionString.Int, ErrorMessage="必须输入数字")]

        public int Sno
        {
         get; set; 
        }


       

       
       }
       #endregion 生成实体类验证属性
    }
}
